package com.liveinstars.api.im;

import com.liveinstars.api.im.vo.WordBadLevel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient("im")
public interface BadWordRecognizeService {

	@PostMapping("/wordbadlevel")
	WordBadLevel getWordBadLevel(@RequestBody Map params);

	@GetMapping("getbadwordlist")
	String getBadWordList();

	@GetMapping("addordeletebadword")
	String addOrDeleteBadWord(@RequestParam(value = "word", required = false) String word, @RequestParam(value = "type", required = false) String type);

}
